package com.qunar.support.web;

import java.io.PrintWriter;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.qunar.support.service.UserService;

public class GetAllUserServlet extends HttpServlet {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5789418090760096984L;

	public void service(HttpServletRequest request, HttpServletResponse response) {
		try {
			UserService us = new UserService();
			
			response.setCharacterEncoding("utf8");
			PrintWriter out = response.getWriter();
			out.println(us.getAllUser());
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
